#ifndef _Frame_Frame_h
#define _Frame_Frame_h

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <J3Control/Frame.lay>
#include <CtrlCore/lay.h>

#include "Page.h"
	
class Frame : public WithFrameLayout<TopWindow> {
public:
	typedef Frame CLASSNAME;
	Page pg;
	Frame();
	void Exit();
	
	Thread td;				//线程
	Mutex mt;				//互斥区
	StatusBar status;		//状态栏
	
	//类名窗口句柄
	String className;
	HWND	curHwnd;
	//injection
	void oij();
	void sendm(int n);
	void OnSetting();
	MenuBar menu;			//菜单
	void SubMenu(Bar& bar);
	void MainMenu(Bar& bar);
	
	void PrintLog(String log, Color r = Red());
	void PrintMsg(String msg);
	
	virtual void Serialize(Stream& s){
	 s % className ;}
};

#endif
